package com.huaxin.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaxin.device.dto.response.EquipmentStatsRespDTO;
import com.huaxin.device.models.EquipmentCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
    /**
     * 查询每个分类下的设备数量
     */
    List<EquipmentStatsRespDTO.CategoryCount> selectEquipmentCountByCategory();
}